import React, {useEffect} from 'react';
import {Spin} from "antd";
import NProgress from "nprogress";
import "nprogress/nprogress.css";
import './index.css'


const Loading = () => {
    useEffect(() => {
        NProgress.start();
        return () => {
            NProgress.done();
        };

    }, []);
    return (
        <div className="app-container">
            <Spin/>
        </div>
    );
};

export default Loading;
